<template>
  <div class="boxrow">
    <slot></slot>
  </div>
</template>
<script lang="ts">
import { ref, watch } from 'vue'
export default {
  props: {
    menuitem: String
  },
  setup(props) {
    let menuitem = ref(props.menuitem)

    watch(props, (newValue) => {
      menuitem.value = newValue.value;
    })
  }
}
</script>
<style lang="less" scoped>
.test {
  color: red;
  height: 200px;
  width: 200px;
}
</style>